#!/bin/bash
# vim:fdm=marker fmr=[[[,]]] cms=\ #%s

[[ -z $SOAR ]] && SOAR=/opt/soar
PATH=$PATH:$SOAR/common/bash/soar
. soar.sh

main()
{ #[[[
    if [[ -z $SVCENV_DIR ]]
    then
        echo "Error: SVCENV_DIR not set"
        return 1
    fi
    local svr=$(basename $PWD | tr 'a-z' 'A-Z')

    downsvr $svr
    if (( $? != 0 ))
    then
        return 1
    fi

    bsvr
    if (( $? != 0 ))
    then
        return 1
    fi

    bootsvr $svr
    if (( $? != 0 ))
    then
        return 1
    fi
} #]]]

main $@
exit $?
